package com.UnionPayCenter.service;

import com.UnionPayCenter.entity.UserLevelEntity;
import com.UnionPayCenter.mapper.UserLevelMapper;
import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.PageInfo;
import io.swagger.models.auth.In;

import java.util.List;

public interface IUserLevelService {
    /**
    * @Description: 查询会员等级列表
    * @Param:
    * @return:
    * @Author: bite
    * @Date: 2019/4/25
    */
    PageInfo<UserLevelEntity> findList(JSONObject jsonParam);

    /**
    * @Description: 会员等级添加
    * @Param:
    * @return:
    * @Author: bite
    * @Date: 2019/4/25
    */
    boolean add(JSONObject jsonParam);

    /**
    * @Description: 会员等级修改
    * @Param:
    * @return:
    * @Author: bite
    * @Date: 2019/4/25
    */
    boolean update(JSONObject jsonParam);


    /**
    * @Description: 根据充值金额修改会员等级
    * @Param:
    * @return:
    * @Author: bite
    * @Date: 2019/5/25
    */
    boolean updateByRecharge(Integer userId, Double amount);

    /**
     * 获取优惠券信息
     * @param shopId
     * @param levelId
     * @return
     */
    UserLevelEntity selectByLevelId(Integer shopId, Integer levelId);


    /**
     * @Description: 查询会员等级列表[前端小程序]
     * @Param:
     * @return:
     * @Author: bite
     * @Date: 2019/4/25
     */
    List<UserLevelEntity> findLevelList(JSONObject jsonParam);
}
